package com.woniu.sharepark.platformsystem.dao;

import com.woniu.sharepark.platformsystem.pojo.Voucher;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author DELL
 * @date 2019/6/10 23:27
 * version v1.0
 */

@Repository
public interface VoucherDAO {
    /**
    * 主键查找代金卷
    * @title selectByPrimaryKey
    * @param voucherId
    * @return com.woniu.sharepark.platformsystem.pojo.Voucher
    * @author DELL
    * @date 2019/6/10 23:28
    **/

    Voucher selectByPrimaryKey(Integer voucherId);

    /**
    * 按uid查找
    * @title findVouchers
    * @param uId
    * @return java.util.List
    * @author DELL
    * @date 2019/6/13 0:02
    **/

    List findVouchers(Integer uId);

    /**
    * 删除代金卷
    * @title deleteVoucherById
    * @param getvId
    * @return void
    * @author DELL
    * @date 2019/6/13 22:51
    **/

    void deleteVoucherById(Integer getvId);

    /**
     * 插入代金券
     *
     * @param voucher 该参数用于传入代金券的参数，不需要的参数设置为空
     * @return void
     * @Author Zongjie.Li
     * @Date 2019/6/17
     * @Version 1.0
     */
    void insertSelective(Voucher voucher);
}
